package com.ymy.controller;

import com.qianfeng.util.ResultMsg;
import com.ymy.entity.TbSpeedkill;
import com.ymy.service.SpeedkillService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author slient
 */
@RestController
public class SpeedkillController {
    @Autowired
    SpeedkillService speedkillService;

    @GetMapping("/speedkill/showdateMenu")
    public ResultMsg showdateMenu(){
        return speedkillService.showdateMenu();
    }
    @GetMapping("/speedkill/goods")
    public ResultMsg goods(TbSpeedkill tbSpeedkill){
        return speedkillService.showGoods(tbSpeedkill);
    }

    @GetMapping("/speedkill/buy")
    public ResultMsg speedkill(TbSpeedkill tbSpeedkill){
        return speedkillService.speedkill(tbSpeedkill);
    }













}
